package tbdp.tool.spi;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import tbdp.tool.context.JobContext;

/**
 * @author xbkaishui
 * @version $Id: Reader.java, v 0.1 2017-06-17 下午3:04 xbkaishui Exp $$
 */
public abstract class Reader {

    protected Logger logger = LoggerFactory.getLogger(Reader.class);


    /**
     * 根据任务配置读取数据
     */
    public abstract RecordIterator read(JobContext context);

    public abstract String getType();

}
